#include "stdafx.h"
#include "hGdi.h"

int hGdi::count = 0;

void hGdi::free( Image * p )
{
	if( p )
	{
		delete p;
		count--;
	}
}
Bitmap * hGdi::createBitmap(
	IN INT width,
	IN INT height,
	IN INT stride,
	IN PixelFormat format,
	IN BYTE *scan0
	)
{
	count++;
	return new Bitmap( width, height, stride, format, scan0 );
}

Image * hGdi::createImage(
	IN const WCHAR* filename,
	IN BOOL useEmbeddedColorManagement
	)
{
	count++;
	return new Image( filename, useEmbeddedColorManagement );
}
